package testSDS;

public class SDSUtils {

    public void append(MySDS sds, String str) throws Exception {
        sds.strcat(str);
        System.out.println(sds.getLen());
    }

    public String get(MySDS sds) {
        return new String( sds.getBuf());
    }

    public MySDS put(String str) throws Exception {
        return new MySDS(str);
    }

    public int strlen(MySDS sds) {
        return sds.getLen();
    }

}
